package com.rich.richnative

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.lifecycle.lifecycleScope
import kotlinx.coroutines.delay

class RichnativeSplash : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        rich_native_full_ui(window)
        setContentView(R.layout.rich_native_splash)
        lifecycleScope.launchWhenResumed {
            delay((1500..3000).random().toLong())
            startActivity(Intent(this@RichnativeSplash, RichnativeMainA::class.java))
            finish()
        }
    }
}